/**
 * 通知相关API
 */
import request from '@/utils/request'

/**
 * 发送通知
 */
export function sendNotification(data) {
  return request({
    url: '/api/notification/send',
    method: 'POST',
    data
  })
}

/**
 * 获取用户通知列表
 */
export function getUserNotifications(userId) {
  return request({
    url: '/api/notification/list',
    method: 'GET',
    data: { userId }
  })
}

/**
 * 标记通知为已读
 */
export function markNotificationRead(notificationId) {
  return request({
    url: '/api/notification/read',
    method: 'POST',
    data: { notificationId }
  })
}
